<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <style>
            body {
                padding-top: 100px;
            }
            #d1 {
                width: 1000px;
                height: 100px;
                background-color: red;
                position: fixed;
                top: 0;
            }
            #d2 {
                width: 50px;
                height: 200px;
                background-color: blue;
                position: fixed;
                right: 20px;
                top: 35%;
            }
        </style>
    </head>
    <body>
        <div id="d1"></div>
        <div id="d2"></div>
        <img src="../2.jpg" alt="" />
        <img src="../2.jpg" alt="" />
        <img src="../2.jpg" alt="" />
        <img src="../2.jpg" alt="" />
        <img src="../2.jpg" alt="" />
        <img src="../2.jpg" alt="" />
    </body>
</html>
